package cn.kust.microtourismcommon.util;

/**
 * @author WY
 * @data 2022/7/6 20:27
 **/
public class RedisPrefixUtils {

    //验证码前缀
    private static final String verifyCodePrefix = "user-verification-code-";
    //token前缀
    private static final String tokenPrefix = "token-";



    public static String  generatorTokenKey(String phone, String identity,String tokenType) {
        return tokenPrefix + phone + "-" + identity + "-" + tokenType;
    }

    public static String generatorCodeKeyByPhone(String passengerPhone) {
        return verifyCodePrefix + passengerPhone;
    }

}
